package com.itheima.bigevent.service;

import com.itheima.bigevent.pojo.Article;
import com.itheima.bigevent.pojo.PageBean;

/**
 * ClassName: AriticleService
 * Package: com.itheima.bigevent.service
 * Description:文章的接口
 *
 * @Author: Zhang Peiyuan
 * @Create: 2024-08-20-18:30
 * @Version: v1.0
 */

public interface ArticleService {

    Integer add(Article article);

    PageBean<Article> list(Integer pageNum, Integer pageSize, Integer categoryId, String state);

    Article queryById(Integer id);

    Integer update(Article article);

    Integer delete(Integer id);

    PageBean<Article> listAll(Integer pageNum, Integer pageSize, Integer categoryId, String state);
}
